<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
       var first = (parseInt(prompt("请输入一个数字",3)) % 2!==0)?1:0 ;
       var second = (parseInt(prompt("再输入一个数字",147)) % 2 !==0) ? 1: 0;
       if(first===second){
          alert("你好，这两个数字的奇偶性相同")
       }else{
          alert("你好，这两个数字的奇偶性不同")
       }
    </script>
</head>
<body>
    
</body>
</html>